<html>
<head>
	<title>{$sitetitle}</title>
</head>
<body>
	<div class="rightContent">
		<div class="centerContent">
			<div class="articleList">
				<div class="lasted"><span class="iconfont">&#xe6e3;</span>最新博文</div>
				{if $toparticle}
					{foreach $toparticle as $value}
						<div class="articleCard">
						{if $value.titleimg}
							<div class="articlePic"><img src="source/picture/{$value.titleimg}"></div>
						{/if}
						
						<div class="articleText" style="{if !$value.titleimg}width:637px{/if}">
							<h1><a href="view.php?article={$value.id}" target="_blank">{$value.title}</a><img style="margin-left:8px;margin-top:3px;"src="templete/default/img/top.gif"/></h1>
							<p>{$value.content}</p>
							<div class="info">
							<div class="pubTime">发布于 {$value.pubtime}</div>
							<div class="remark">
								<div class="remakePic iconfont">&#xe70d;</div>
								<a href="view.php?article={$value.id}#remark">评论({$value.remarknum})</a>
								
							</div>
							<div class="remark">
								<div class="viewsPic iconfont">&#xe6e4;</div>
								<a>阅读({$value.view})</a>
								
							</div>
							</div>
						</div>
						</div>						
					{/foreach}
				{/if}
				{foreach $article as $value}
					<div class="articleCard">
					{if $value.titleimg}
						<div class="articlePic"><img src="source/picture/{$value.titleimg}"></div>
					{/if}
					
					<div class="articleText" style="{if !$value.titleimg}width:637px{/if}">
						<h1><a href="view.php?article={$value.id}" target="_blank">{$value.title}</a></h1>
						<p>{$value.content}</p>
						<div class="info">
						<div class="pubTime">发布于 {$value.pubtime}</div>
						<div class="remark">
							<div class="remakePic iconfont">&#xe70d;</div>
							<a href="view.php?article={$value.id}#remark">评论({$value.remarknum})</a>
							
						</div>
						<div class="remark">
							<div class="viewsPic iconfont">&#xe6e4;</div>
							<a>阅读({$value.view})</a>
							
						</div>
						</div>
					</div>
					</div>
				{/foreach}
				<div class="page">
					{if $pagearr[0]!=1}
						<a class="pageNum" href="?{if $type}type={$type}&{/if}page=1">首页</a>
					{/if}
					{if $nowpage-1>=1}
						<a class="pageNum" href="?{if $type}type={$type}&{/if}page={$nowpage-1}">上一页</a>
					{/if}
					{foreach $pagearr as $values}
						<a class="pageNum" style="{if $values==$nowpage}border-color:#38f{/if}" href="?{if $type}type={$type-1}&{/if}page={$values}">{$values}</a>
					{/foreach}
					{if $nowpage+1<=$pagenum}
						<a class="pageNum" href="?{if $type}type={$type}&{/if}page={$nowpage+1}">下一页</a>
					{/if}
					{if $values < $pagenum}
						<a class="pageNum" href="?{if $type}type={$type}&{/if}page={$pagenum}">尾页</a>
					{/if}
							
				</div>
			</div>
			<div class="rightList">
				<div class="myInfo">
					<div class="meInfo">
						<img src="templete/{$templete}/img/head.jpg"></img>
						<div class="myName">
							<div class="nameTitle">个快快(木东)</div>
							<div class="myWork">
								<div class="workPic"></div>
								<div class="workText">喜欢记录文字的码农</div>
							</div>
						</div>
					</div>
					<p>生活中往往只能看到庸才<br>他们会麻痹你的思想，融化你的梦想<br>另一个空间，真正的强者正嘲笑你的迷茫<br>除了奋斗，我们还能选择什么</p>
					<div class="blogInfo">
						<div class="infoBlock">
							<div class="blgoInfoTitle">博文</div>
							<div class="blgoInfoNum">{$artnum}</div>
						</div>
						<div class="infoBlock">
							<div class="blgoInfoTitle">朋友</div>
							<div class="blgoInfoNum">0</div>
						</div>
						<div class="infoBlock">
							<div class="blgoInfoTitle">评论</div>
							<div class="blgoInfoNum">{$remarknum}</div>
						</div>
					</div>
					<div class="Button">
						<a class="emailButton" href="">找我</a>
						<a class="moreButton" href="">关于</a>
					</div>
				</div>

			<div class="myInfo">
				<h3>最新评论</h3>
				{foreach $remark as $value}
				<div class="remarkBlock">
					<div class="author">
					<img src="source/head/{$value.headpic}"/>
					<div class="authorRight">
						{$value.name}
					<div class="remarkTime">发布于 {$value.time}</div>
					</div>
					</div>
					<div class="remarkContent">{$value.content}</div>
				</div>
				{/foreach}
			</div>
			</div>
		</div>
	</div>
</body>
</html>

